package com.lzw.service.impl;

import com.lzw.bean.Menu;
import com.lzw.bean.Node;
import com.lzw.common.service.impl.BaseServiceImpl;
import com.lzw.mapper.MenuMapper;
import com.lzw.mapper.NodeMapper;
import com.lzw.service.MenuService;
import com.lzw.service.NodeService;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * Created by Administrator on 2017/6/30 0030.
 */
@Service("menuService")
public class MenuServiceImpl extends BaseServiceImpl<MenuMapper,Menu> implements MenuService{


    @Override
    public List<Menu> findMenu() {
        return baseMapper.findMenu();
    }

    @Override
    public List<Menu> findMenuByPid(Integer id) {
        return baseMapper.findMenuByPid(id);
    }

    @Override
    public List<Menu> selectByRole(int role_id) {
        return baseMapper.selectByRole(role_id);
    }

}
